#include<iostream>
#include<string>
using namespace std;
int main()
{
    string num1, num2;
    cin >> num1 >> num2;
    int i = num1.size() - 1;
    int j = num2.size() - 1;
    int ans = 0;
    string s = "";
    while (i >= 0 || j >= 0)
    {
        int sum = ans;
        if (i >= 0) {
            sum += (num1[i] - '0');
        }
        if (j >= 0) {
            sum += (num2[j] - '0');
        }
        s += ('0' + sum % 10);
        ans = sum / 10;
        --i;
        --j;
    }
    if (ans) {
        s += ('0' + ans);
    }
    reverse(s.begin(), s.end());
    cout << s;
	return 0;
}